import request from "@/request/api";
//监测数据
//获取历史数据
export function getHistoryApi(data) {
  return request({
    url: "/eam-service-monitor/common/getHistory",
    method: "get",
    params: data,
  });
}
//获取YC历史数据
export function getYCHistoryApi(data) {
  return request({
    url: "/eam-service-device/ycMonitorController/getCurveData",
    method: "post",
    data: data,
  });
}
//获取实时数据查询
export function getRealTimeApi(data) {
  return request({
    url: "/eam-service-monitor/common/getRealTime",
    method: "get",
    params: data,
  });
}
//获取YC实时数据查询
export function getYCRealTimeApi(data) {
  return request({
    url: "/eam-service-device/ycMonitorController/getSensorByMonitorCode",
    method: "get",
    params: data,
  });
}
//获取历史数据的范围
export function getScopeApi(id="") {
  return request({
    url: "/eam-service-monitor/equipment/queryById",
    method: "get",
    params: {id},
  });
}
